package com.landleaf.smarthome.net.mqtt.bean;

import java.io.Serializable;

/**
 * When I wrote this, only God and I understood what I was doing
 * Now, God only knows
 * Created by 海航
 * 2020/9/27
 * 功能描述: 请求和响应通用的msg 实体
 */
public class MqttMsgBodyModel<T> implements Serializable {
    private static final long serialVersionUID = 8443750514590483952L;
    private MqttHeaderModel header;
    private MqttPayloadModel<T> payload;

    public MqttHeaderModel getHeader() {
        return header;
    }

    public void setHeader(MqttHeaderModel header) {
        this.header = header;
    }

    public MqttPayloadModel<T> getPayload() {
        return payload;
    }

    public void setPayload(MqttPayloadModel<T> payload) {
        this.payload = payload;
    }
}
